import http from '../index'

const api = '/provider/miravia/order'

export function get(params) {
  return http.get(api, { 
    params 
  })
}

export function post(data) {
  return http.post(api, data)
}


export function ticket(id, ticket) {
  return http.post(api + '/ticket/' + id, { ticket })
}

export function pull(params) {
  return http.get(api + '/pull', { params })
}

export function item(ids) {
  return http.get(api + '/item', { params: { ids } })
}